Package com.cisco.pt.ipc.sim.impl
Class SshServerProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.TelnetServerProcessImpl
com.cisco.pt.ipc.sim.impl.SshServerProcessImpl
- All Implemented Interfaces:
IPCObject,Process,SshServerProcess,TelnetServerProcess
Information provided by the PKI file:
\class SshServerProcess
\brief SshServerProcess handles and manipulates the SSH service.
\example network().getDevice("Router0").getProcess("TelnetServer")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionSshServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:voidsetAuthTimeout(int sec) Information provided by the PKI file:voidsetRetryAmount(int amt) Information provided by the PKI file:voidsetVersion(SshVersion version) Information provided by the PKI file:voidusernameReceived(boolean usernameReceived) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.TelnetServerProcessImpl
getTelnetClientCountMethods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDeviceMethods inherited from interface com.cisco.pt.ipc.sim.TelnetServerProcess
getTelnetClientCount
-
Constructor Details
-
SshServerProcessImpl
public SshServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setVersion
Information provided by the PKI file:
\brief Sets the SSH version. \param version, the SSH version. SSH versions: shVerDefault = 0, sshVerOne = 1, sshVerTwo = 2- Specified by:
setVersionin interfaceSshServerProcess- Parameters:
version- Takes in a parameter of version
-
getVersion
Information provided by the PKI file:
\brief Returns the SSH version. \return Ssh::SshVersion, the SSH version. SSH versions: shVerDefault = 0, sshVerOne = 1, sshVerTwo = 2- Specified by:
getVersionin interfaceSshServerProcess- Returns:
- SshVersion Returns a SshVersion
-
isUsernameReceived
public boolean isUsernameReceived()Information provided by the PKI file:
\brief Returns true if the username is received, otherwise false. \return bool, true if the username is received, otherwise false.- Specified by:
isUsernameReceivedin interfaceSshServerProcess- Returns:
- boolean Returns a boolean
-
usernameReceived
public void usernameReceived(boolean usernameReceived) Information provided by the PKI file:
\brief Sets the username as received or not received. \param usernameReceived, true for received, false for not received.- Specified by:
usernameReceivedin interfaceSshServerProcess- Parameters:
usernameReceived- Takes in a parameter of usernameReceived
-
setRetryAmount
public void setRetryAmount(int amt) Information provided by the PKI file:
\brief Sets the retry amount. \param amt, the retry amount.- Specified by:
setRetryAmountin interfaceSshServerProcess- Parameters:
amt- Takes in a parameter of amt
-
getRetryAmount
public int getRetryAmount()Information provided by the PKI file:
\brief Returns the retry amount. \return int, the retry amount.- Specified by:
getRetryAmountin interfaceSshServerProcess- Returns:
- int Returns a int
-
setAuthTimeout
public void setAuthTimeout(int sec) Information provided by the PKI file:
\brief Sets the authentication timeout. \param sec, the authentication timeout.- Specified by:
setAuthTimeoutin interfaceSshServerProcess- Parameters:
sec- Takes in a parameter of sec
-
getAuthTimeout
public int getAuthTimeout()Information provided by the PKI file:
\brief Returns the authentication timeout. \param int, the authentication timeout.- Specified by:
getAuthTimeoutin interfaceSshServerProcess- Returns:
- int Returns a int
-